package com.sk.seckilldemo.mapper;

import com.sk.seckilldemo.entity.SeckillOrder;
import org.apache.ibatis.annotations.Mapper;

/**
 * 秒杀订单处理接口
 * */
@Mapper
public interface OrderMapper {
    /**
     * 添加订单方法
     * */
    public Integer insert(SeckillOrder seckillOrder);

    /**
     * 更新订单状态
     * */
    public Integer updateStatusByOrderNo(SeckillOrder seckillOrder);

    /**
     * 查询订单
     * */
    public SeckillOrder selectByOrderNo(String orderNo);
}
